package cn.neusoft.mapper;

import cn.neusoft.domain.CargoDeployBill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@Mapper
public interface DeployBillMapper {
    public int insert(CargoDeployBill cargoDeployBill);

    public int deleteByID(int id);
    public CargoDeployBill findByID(int id);
    public List<CargoDeployBill> findByDate(Date date);
    public int updateBill(CargoDeployBill cargoDeployBill);

    public List<CargoDeployBill> findByDateFromTo(@Param("from") Date from, @Param("to") Date to);

    public List<CargoDeployBill> findByAimWarehouseID(int warehouseID);

    public List<CargoDeployBill> getAll();

}
